package models;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name = "Notifications")
public class Notification extends Model {

	public Long userId;

	public String title;

	@Lob
	public String main;

	public boolean status;

	public Calendar date;

	public Notification(Long userId, String title, String main) {
		super();
		this.userId = userId;
		this.main = main;
		this.title = title;
		this.status = false;
		this.date = Calendar.getInstance();
	}

}